﻿using T.Common.Domain.Common;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RedDragon.Common.Domain.AuthorizeRBAC
{
    /// <summary>
    /// 权限表
    /// </summary>
    [SugarTable("Permissions")]
    public class Permissions: BaseEntity
    {
        /// <summary>
        /// 权限id
        /// </summary>
        [SugarColumn(IsIdentity = true, IsPrimaryKey = true)]//IsPrimaryKey 主键 IsIdentity 自增
        public int PermissionId { get; set; }
        /// <summary>
        /// 权限编号
        /// </summary>
        [SugarColumn(ColumnDataType ="Nvarchar(50)")]//设计长度
        public string PermissionCoding { get; set; }
        /// <summary>
        /// 权限名称
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(50)")]//设计长度
        public string PermissionName { get; set; }
        /// <summary>
        /// 权限分类id
        /// </summary>
        public int PermissionTypeId { get; set; }
        /// <summary>
        /// 状态 1-有效；2-无效
        /// </summary>
        public int PermissionState { get; set; }
        /// <summary>
        /// 是否删除 0-未删除；1-删除
        /// </summary>
        public int IsDelete { get; set; }
        /// <summary>
        /// 路径
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(50)")]//设计长度
        public string URL { get; set; }
    }
}
